package com.dongjiantong.quarantine.serviceImpl;

import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.quarantine.model.DjtButcherAdmissionInspections;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * Created by mz on 15/11/17.
 *
 */
public interface DjtButcherAdmissionInspectionsReadService extends BaseService<DjtButcherAdmissionInspections>{

    /**
     * 根据单据ID 查询单据详情
     * @param id 主键ID
     * @return DjtButcherAdmissionInspections
     */
    DjtButcherAdmissionInspections findById(Long id);


    /**
     * 屠宰端的分页查询
     * @param pageNum 页码
     * @param pageSize 每页条数
     * @param map 参数
     * @return PageInfo<DjtButcherAdmissionInspections>
     */
    PageInfo<DjtButcherAdmissionInspections> pagingForButcher(Integer pageNum, Integer pageSize, Map<String , Object> map);

    /**
     * 政府端的分页查询
     * @param pageNum 页码
     * @param pageSize 每页条数
     * @param map 参数
     * @return PageInfo<DjtButcherAdmissionInspections>
     */
    PageInfo<DjtButcherAdmissionInspections> pagingForGOV(Integer pageNum,Integer pageSize,Map<String , Object> map);


    /**
     * 获取当前单据状态
     * @param id 单据主键id
     * @return Integer status
     */
    Integer findStatusById(Long id);

    /**
     * 根据产地检疫的单据id查询入场单据的id
     * @param id 产地检疫的单据id
     * @return Long
     */
    Long checkIsExist(Long id);
}
